<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="table01 t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
	<td class="t_bar2" colspan="4">基本信息</td>
	</tr>
	<tr>
		<td  width="15%" align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
	 <td  align="right"  width="15%" ><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
<tr>
	<td class="t_bar2" colspan="4">申请项目资金情况</td>
	</tr>
	
	<tr>
		<td  width="15%" align="right">申请项目类别：</td>
		<td  width="35%">&nbsp;<x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  width="15%" align="right" >支持方式：</td>
		<td  width="35%">&nbsp;<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span></td>
	</tr>

	<tr>
	    <td align="right"><span class="color_red">*</span>申请金额：</td>
		<td  >
			<input id="total_funds" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,9,4,2)" label="申请金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/>万元 
		</td>
		<td  align="right">资金级次：</td>
		<td >&nbsp;<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  >&nbsp;<span name="proposal/org_name">无锡市文化广电新闻出版局</span> 
		</td>
	    <td  align="right">管理类别：</td>
		<td  >&nbsp;<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span></td>
		
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="3">
			<c:set var="category"><x:out select="$xmlData/data/proposal/category_value" /></c:set>
		    <cpt:checkbox key="category" name="category" repeatColumn="9" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="category_value" name="proposal/category_value" class="required" value="${category}" label="项目所属类别">
			<input type="hidden" name="proposal/category_name" value="<x:out select="$xmlData/data/proposal/category_name" />">
		</td>
	</tr>
	<tr style="display:none"></tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="3">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="6" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="3">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	
	
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="4">申请资助依据条款
		</td>
		</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>

<table class="table01 t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
<tr>
	<td class="t_bar2" colspan="6">人员信息</td>
	</tr>
	<tr>
		<td  width="15%" nowrap align="right"><span class="color_red">*</span>个人姓名：</td>
		<td  colspan='2'>
		    <input name="proposal/person_cname"  maxlength="100"  class="required input_css" 
		           label ="个人姓名"  
		           value="<x:out select="$xmlData/data/proposal/person_cname" />"/>
		</td>
		<td  width="15%" nowrap align="right">其他（英文）名：</td>
		<td  colspan='1'>
		    <input  name="proposal/person_en_title"  maxlength="100"     class="input_css" 
		           label ="其他（英文）名"  
		           value="<x:out select="$xmlData/data/proposal/person_en_title" />"/>
		</td>
		
		<td rowspan="7" width="130px" align="center">
		   <c:set var="file_code9"><x:out select="$xmlData/data/content/file_code9" /></c:set>
		   <div id="uploadsuccess9">
		      <c:choose>
		           <c:when test="${file_code9==''}">
		               <img id="stuphotoImg" src="/egrantres_nanshan/images/app/photo_01.jpg"  style="width:130px;height:159px" />
		           </c:when>
		           <c:otherwise>
		               <img id="stuphotoImg" src="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/content/file_code9" />"  
		               style="width:130px;height:159px" />
		           </c:otherwise>
		      </c:choose>
		      <a href="#" style="cursor: pointer;" onclick="cilckFile('stu')"><span style="color: blue;">[上传照片]</span></a><br>
		      <span class="color_red">照片规格：358像素X441像素（小于2M）</span>
		   </div>
		   
		   <div id="file9" style="text-align:center">
		       <input type="hidden" name="content/file_code9" id="content_file_code9"  value="<x:out select="$xmlData/data/content/file_code9" />" />
		   </div>   
	</tr>
	<tr>
	   <td nowrap align="right" ><span class="color_red">*</span>出生日期：</td>
		<c:set var="birthday"><x:out select='$xmlData/data/person/birthday' /></c:set>
		<td colspan='2' nowrap>
		    <cpt:date id="birth" name="person/birthday" className="required date"
					label="出生日期" value="${birthday}"></cpt:date>
		</td>
		<td align="right" width="15%" ><span class="color_red">*</span>性别：</td>
		<td  colspan='1' >
		    <label><input type="radio" name="gender"  class="do" value="M" label="男" onchange="synRadionData(this,'recommend_gender_value')">男</label>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="gender"  class="do" value="F" label="女" onchange="synRadionData(this,'recommend_gender_value')">女</label>
		    <input type="hidden" id='gender_value' name="person/gender_value" class="required"  label="性别"  
		     value="<x:out select="$xmlData/data/person/gender_value" />">	
		</td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>证件类型：</td>
	    <td colspan="2">
			<c:set var="card_type_value"><x:out select="$xmlData/data/person/card_type_value" /></c:set>	
			<input type="hidden"  name="person/card_type_value"  id="card_type_value"  class="required" value="<x:out select="$xmlData/data/person/card_type_value" />" label="证件类型">
			<input type="hidden" id="card_type_name" name="person/card_type_name" value="<x:out select="$xmlData/data/person/card_type_name" />">	
			<cpt:select id="card_type"  key="id_type" className="select_width"   onChange="changeCardType();" value="${card_type_value}"></cpt:select>
			
		</td>
		<td nowrap align="right" ><span class="color_red">*</span>证件号码：</td>
		<td colspan="1">
		    <input id="person_card_id" name="person/card_id"  maxlength="100"  class="required input_css " 
		           label ="证件号码"  maxlength="50"    value="<x:out select="$xmlData/data/person/card_id" />"/>
		</td>
	</tr>
	<tr>
		   <td  align="right"><span class="color_red">*</span>参加工作时间：</td>
		<td colspan='2'>
			<c:set var="work_stdate"><x:out select="$xmlData/data/person/work_stdate" /></c:set>
			<cpt:date id="work_stdate" name="person/work_stdate" value="${work_stdate}" className=" required date" label="参加工作时间"></cpt:date> 
		</td>
		<td nowrap align="right" ><span class="color_red">*</span>政治面貌：</td>
		<td colspan='1'>
		    <input name="person/political_status"  maxlength="100"  class="required input_css" 
		           label ="政治面貌" 
		           value="<x:out select="$xmlData/data/person/political_status" />"/>
		</td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  colspan="2">
			<input  name="person/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/person/contact_psn_email" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>手机：</td>
		<td  >
			<input  name="person/contact_psn_mobile"  label="手机" type="text" required class="input_css required mobile"   maxlength="11" value="<x:out select="$xmlData/data/person/contact_psn_mobile" />"/> 
		</td>
	
	</tr>
	<tr>
	    <td nowrap align="right"><span class="color_red">*</span>工作单位：</td>
		<td colspan='4'>
		    <input name="person/org_name" class="dsPsn required"  style="width: 83%"  maxlength="100" label="工作单位" value="<x:out select="$xmlData/data/person/org_name" />"> 
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>毕业院校：</td>
		<td colspan='2'>
		    <input name="person/graduate_college" class="dsPsn required" maxlength="100" label="毕业院校" value="<x:out select="$xmlData/data/person/graduate_college" />">
		</td>
		<td nowrap align="right"><span class="color_red">*</span>所学专业：</td>
		<td colspan='1'>
		    <input name="person/major" class="dsPsn required" maxlength="100"   label="所学专业" value="<x:out select="$xmlData/data/person/major" />"/>
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>职务：</td>
		<td colspan='2'>
		    <input name="person/prof_title_name" class="dsPsn required" maxlength="100" label="职务" value="<x:out select="$xmlData/data/person/prof_title_name" />"/>
		 </td>
		<td nowrap align="right"><span class="color_red">*</span>专业技术职称：</td>
		<td colspan='1'>
		  <input name="person/card_code"  maxlength="100"  class="dsPsn required" label="专业技术职称" value="<x:out select="$xmlData/data/person/card_code" />"/>
		</td>
		<td >&nbsp;</td>
	</tr>	
	
	<tr>
		<td nowrap align="right" ><span class="color_red">*</span>专长：</td>
		<td colspan='4'>
		    <input name="person/special" maxlength="100"  class="required input_css"  label ="专长"   value="<x:out select="$xmlData/data/person/special" />"/>
		</td>
		<td >&nbsp;</td>
	</tr>
	
	<tr>
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>履任社会职务情况（限200字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="job_done" name="person/job_done" rows=4 cols=150  label="履任社会职务情况""  class="textarea required maxlength:200"><x:out select="$xmlData/data/person/job_done" /></textarea>
		    <input type="hidden" name="person/job_done_hidden" id="person/job_done_hidden" value="<x:out select="$xmlData/data/person/job_done_hidden" />"/>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>获奖情况（限200字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="job_done" name="person/reward_sectuation" rows=4 cols=150  label="获奖情况""  class="textarea required maxlength:200"><x:out select="$xmlData/data/person/reward_sectuation" /></textarea>
		    <input type="hidden" name="person/reward_sectuation_hidden" id="person/reward_sectuation_hidden" value="<x:out select="$xmlData/data/person/reward_sectuation_hidden" />"/>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>所在企业近两年是否有质量、环保、安全等处罚记录（限200字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="quility_sectuation" name="person/quility_sectuation" rows=4 cols=150  label="所在企业近两年是否有质量、环保、安全等处罚记录""  class="textarea required maxlength:200"><x:out select="$xmlData/data/person/quility_sectuation" /></textarea>
		    <input type="hidden" name="person/quility_sectuation_hidden" id="person/quility_sectuation_hidden" value="<x:out select="$xmlData/data/person/quility_sectuation_hidden" />"/>
		</td>
	</tr>
	
	<tr>
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>承担科研项目情况（限200字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="project_ky" name="person/project_ky" rows=4 cols=150  label="承担科研项目情况""  class="textarea required maxlength:200"><x:out select="$xmlData/data/person/project_ky" /></textarea>
		    <input type="hidden" name="person/project_ky_hidden" id="person/project_ky_hidden" value="<x:out select="$xmlData/data/person/project_ky_hidden" />"/>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>个人简历（主要填写对申报人在技术（艺术）方面的专长、产业贡献力、行业影响力、个人成就等方面的评价，限1000字以内）
	</tr>
	<tr>
		<td colspan="6">
			<textarea id="information_resume" name="person/information_resume" rows=10 cols=150  label="个人简历"  class="textarea required maxlength:1000"><x:out select="$xmlData/data/person/information_resume" /></textarea>
		    <input type="hidden" name="person/information_resume_hidden" id="person/information_resume_hidden" value="<x:out select="$xmlData/data/person/information_resume_hidden" />"/>
		</td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息
		</td>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td>
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
		<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
		
		</tr>
</table>
	
<script type="text/javascript">


$(function() {
	changeCardType2();
});


    
    function changeCardType(){
    
    	
    	var cardTypeObj = $("#card_type");
    	var cardCodeObj = $("#person_card_id");
    	
    	if(cardTypeObj.val()=="1"){
    		cardCodeObj.addClass("idCard");
    		cardCodeObj.attr("label","身份证");
    	} else {
    		cardCodeObj.removeClass("idCard");
    		cardCodeObj.attr("label","证件号码");
    	}
    	
    }
    
function changeCardType2(){
    
    	
    	var cardTypeObj = $("#card_type_value");
    	var cardCodeObj = $("#person_card_id");
    	
    	if(cardTypeObj.val()=="1"){
    		cardCodeObj.addClass("idCard");
    		cardCodeObj.attr("label","身份证");
    	} else {
    		cardCodeObj.removeClass("idCard");
    		cardCodeObj.attr("label","证件号码");
    	}
    	
    }
    
function synRadionData(obj,id2){
	if(obj.value=='M'){
		$('#'+id2).text('男');
	}else if(obj.value=='F'){
		$('#'+id2).text('女');
	}else{
		$('#'+id2).text('');
	}
}
</script>




